package com.song.emp.provider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.song.emp.provider.domain.Dept;
import com.song.emp.provider.service.DeptService;
import com.song.emp.provider.mapper.DeptMapper;
import com.song.emp.vo.EmpVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept>
    implements DeptService{

    @Resource
    private DeptMapper deptMapper;
    @Override
    public List<EmpVo> findEmps() {
        return this.deptMapper.emps();
    }

    @Override
    public List<EmpVo> findDepts() {
        return this.deptMapper.findDepts();
    }
}




